<extend name="Public/base" />
<block name="body">

<div class="container">
    <!-- carousel -->
    <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            <li data-target="#carousel-example-generic" data-slide-to="2"></li>
        </ol>

    <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
            <foreach name="sliders" item="slider" key="k">
            <if condition="$k eq 0">
                <div class="item active">
            <else/>
                <div class="item">
            </if>
                <a href="{$slider.url}">
                <img src="__ROOT__{$slider.pic}"/>
                </a>
                <div class="carousel-caption">
                    <p>{$slider.title}</p>
                </div>
            </div> 
            </foreach>
            
        </div>

    <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>

</div>

<br/>

	<!--PageContent-->
    <div class="container">
        <div class="row">

<div class="col-md-4">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">竞赛通知</h3>
      </div>
      <div class="panel-body">
        <foreach name="notifications" item="notification">
        <div>            
            <p>
            <a href="{:U('Article/index', array('id'=>$notification['id']))}">{$notification.title}</a>
            </p>

            <p>            
            <a href="" class="btn btn-default btn-sm">竞赛通知下载</a>
            <a href="" class="btn btn-default btn-sm">报名回执下载</a>
            <a href="" class="btn btn-default btn-sm">比赛规则下载</a>
            </p>
        </div>
        </foreach>

       

        <!--div>            
            <p>
            <a href="">0002015“尚和杯"中国机器人大赛暨RoboCup公开赛分项赛(武术擂台、篮球、舞蹈</a>
            </p>

            <p>            
            <a href="" class="btn btn-default btn-sm">竞赛通知下载</a>
            <a href="" class="btn btn-default btn-sm">报名回执下载</a>
            <a href="" class="btn btn-default btn-sm">比赛规则下载</a>
            </p>
        </div-->

         
      </div>
    </div> 
</div>  

<div class="col-md-4">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">历届比赛</h3>
      </div>
      <div class="panel-body">
            <section>
            <a href="{:U('Article/index', array('id'=>$competition1['id']))}">{$competition1.title}</a>
            <br/>
            <p>{$competition1.description|sub_str=###,0,50}</p>
            </section>
            <hr>
            <ul class="list-unstyled">
                <foreach name="competitions" item="competition">
                    <li><a href="{:U('Article/index', array('id'=>$competition['id']))}">{$competition.title}</a></li>
                </foreach>
              
                <!--li><a href="">2015中国机器人竞赛暨ROBOCUP公开赛助老服</a></li-->
            </ul>
      </div>
    </div> 
</div>  

<div class="col-md-4">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">参赛报名</h3>
      </div>
      <div class="panel-body">
       
            <div class="row">
                <div class="col-md-12">

                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <div class="row">
                                <div class="col-xs-3">
                                    <!--i class="fa fa-comments fa-5x"></i-->
                                    <a href="{:U('Register/index')}">
                                    <button type="button" class="btn btn-primary btn-lg" aria-label="Left Align">
                                      <span class="glyphicon glyphicon-check" aria-hidden="true">注册</span>
                                    </button>
                                     </a>
                                </div>
                                <div class="col-xs-9 text-right">
                                    <div class="huge">step1</div>
                                    <div>注册本网站</div>
                                </div>
                            </div>
                        </div>
                        <a href="#">
                            <div class="panel-footer">
                                <a href="{:U('Register/index')}">
                                <span class="pull-left">查看详情...</span>
                                <span class="pull-right"><span class="glyphicon glyphicon-circle-arrow-right" aria-hidden="true"></span></span>
                                <div class="clearfix"></div>
                                </a>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <div class="row">
                                <div class="col-xs-3">
                                    <!--i class="fa fa-comments fa-5x"></i-->
                                     <a href="{:U('Apply/index')}">
                                    <button type="button" class="btn btn-primary btn-lg" aria-label="Left Align">
                                      <span class="glyphicon glyphicon-list-alt" aria-hidden="true">填写报名表</span>
                                    </button>
                                    </a>
                                </div>
                                <div class="col-xs-9 text-right">
                                    <div class="huge">step2</div>
                                    <div>填写报名表</div>
                                </div>
                            </div>
                        </div>
                        <a href="#">
                            <div class="panel-footer">
                                <a href="{:U('Apply/index')}">
                                <span class="pull-left">查看详情...</span>
                                <span class="pull-right"><span class="glyphicon glyphicon-circle-arrow-right" aria-hidden="true"></span></span>
                                <div class="clearfix"></div>
                                </a>
                            </div>
                        </a>
                    </div>
                </div>
                        
            </div>
      </div>


    </div> 
</div>  

 


        </div>

           

        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-primary">
                  <div class="panel-heading">
                    <h3 class="panel-title">合作单位</h3>
                  </div>
                  <div class="panel-body">
                    <img src="__PUBLIC__/Home/h1.jpg" alt="..." class="img-thumbnail">
                    <img src="__PUBLIC__/Home/h2.jpg" alt="..." class="img-thumbnail">
                    <img src="__PUBLIC__/Home/h3.jpg" alt="..." class="img-thumbnail">
                    <img src="__PUBLIC__/Home/h4.jpg" alt="..." class="img-thumbnail">
                    <img src="__PUBLIC__/Home/h4.jpg" alt="..." class="img-thumbnail">
                  </div>
                </div>

            </div>
        </div>

    </div> 
    
</block>

<block name="script">
</block>